import {Message} from '@arco-design/web-vue';


//消息提示

export function toast(content, type = 'info', dangerouslyUseHTMLString = false) {
    Message[type]({
        content,
        dangerouslyUseHTMLString,
        duration: 3000
    })
}

//放抖
export const debounce = (() => {
    let timer = null
    return (callback, wait) => {
        clearTimeout(timer)
        timer = setTimeout(callback, wait)
    }
})()
